<template>
	<view class="payMent">
		<view class="money">
			<view>
				<text>￥</text>
				<text class="amount">60.00</text>
				
			</view>
			<view class="payMoney">付费金额(元)</view>
		</view>
		<!-- <view class="line"></view> -->
		<view class="explain">
			<view class="explainX">
				<view class="explainX_1">付费说明:</view>
				<view class="explainX_2">收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费收费按次收费</view>
			</view>
		</view>
		<view class="change">
			<view class="paymode">选择支付方式</view>
			<view class="weixin" @tap="changePay(0)">
				<view class="left">
					<image src="/static/home/weixin.png"></image>
					<text>微信支付</text>
				</view>
				<view class="right">
					<image v-if="pay" src="/static/home/no.png"></image>
					<image v-else src="/static/home/selectSuccess.png"></image>
				</view>
			</view>
			<view class="ali" @tap="changePay(1)">
				<view class="left">
					<image src="/static/home/ali.png"></image>
					<text>支付宝支付</text>
				</view>
				<view class="right">
					<image v-if="pay" src="/static/home/selectSuccess.png"></image>
					<image v-else src="/static/home/no.png"></image>
				</view>
			</view>
		</view>
		<view class="footer">确认支付</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loadingImg: '',
				image: '',
				pay: false
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		methods: {
			changePay(k) {
				this.pay = !this.pay
			}
		}
	}
</script>

<style lang="scss" scoped>
	.payMent {
		.money {
			// height: 268rpx;
			// line-height: 268rpx;
			text-align: center;
			color: #FF4C46;
			margin: 95rpx 0;
			.amount {
				font-size: 56rpx;
				font-weight: bold;
			}
		}
		.explain {
			padding: 0 32rpx;
			.explainX {
				background: #F5F5F5;
				color: #999999;
				padding: 32rpx;
				border-radius: 8rpx;
				.explainX_1 {
					margin-bottom: 32rpx;
					color: #333333;
				}
				.explainX_2 {
					font-size: 28rpx;
					line-height: 40rpx;
				}
			}
		}
		.payMoney {
			margin-top: 16rpx;
			font-size: 30rpx;
			color: #999999;
		}
		.line {
			height: 20rpx;
			background: #f5f5f5;
		}
		.change {
			padding: 32rpx;
			.paymode {
				margin-bottom: 52rpx;
			}
			.weixin {
				display: flex;
				margin-bottom: 48rpx;
				.left {
					flex: 5;
					image {
						width: 48rpx;
						height: 48rpx;
						vertical-align: middle;
						margin-right: 20rpx;
					}
					text {
						display: inline-block;
						transform: translateY(4rpx);
					}
				}
				.right {
					flex: 5;
					text-align: right;
					padding-top: 8rpx;
					image {
						width: 40rpx;
						height: 40rpx;
					}
				}
			}
			.ali {
				display: flex;
				.left {
					flex: 5;
					image {
						width: 48rpx;
						height: 48rpx;
						vertical-align: middle;
						margin-right: 20rpx;
					}
					text {
						display: inline-block;
						transform: translateY(4rpx);
					}
				}
				.right {
					flex: 5;
					text-align: right;
					padding-top: 8rpx;
					image {
						width: 40rpx;
						height: 40rpx;
					}
				}
			}
		}
		.footer {
			position: fixed;
			bottom: 64rpx;
			width: 686rpx;
			height: 88rpx;
			background: #267DFF;
			opacity: 1;
			border-radius: 48rpx;
			margin-left: 32rpx;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
		}
	}
</style>
